package io.gimo.study.design_pattern.proxy.static_proxy;

import java.util.Random;

//传统方式的代理
public class Car implements Moveable {

	@Override
	public void move() {
//		long start = System.currentTimeMillis();
//		System.out.println("start");
		try {
			Thread.sleep(new Random().nextInt(1000));
			System.out.println("ing");
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
//		long over = System.currentTimeMillis();
//		System.out.println("over");
//		System.out.println("time is " +(over-start)+" ms");
	}

}
